<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('登记管理')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">

    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-registry-edit" th:object="${djbRegistry}">
<!--            <input name="id" th:field="*{id}" type="hidden">-->
            <div class="form-group">
                <label class="col-sm-3 control-label">访客标识：</label>
                <div class="col-sm-8">
                    <p th:text="*{name}"  style="margin-top: 10px"></p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <p th:text="*{mobile}" style="margin-top: 10px"></p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">来访地点：</label>
                <div class="col-sm-8">
                    <p th:text="*{address}" style="margin-top: 10px"></p>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">来访事由：</label>
                <div class="col-sm-8">
                    <p th:text="*{reason}" style="margin-top: 10px"></p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">来访类型：</label>
                <div class="col-sm-8">
                    <p th:text="*{type}" style="margin-top: 10px"></p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">登记人：</label>
                <div class="col-sm-8">
                    <p th:text="*{createName}" style="margin-top: 10px"></p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">登记时间：</label>
                <div class="col-sm-8">
                    <p th:text="*{createTime}" style="margin-top: 10px"></p>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">审核人：</label>
                <div class="col-sm-8">
                    <p style="margin-top: 10px">无参数</p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">审核时间：</label>
                <div class="col-sm-8">
                    <p style="margin-top: 10px">无参数</p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">放行人：</label>
                <div class="col-sm-8">
                    <p th:text="*{releaseName}" style="margin-top: 10px"></p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">放行时间：</label>
                <div class="col-sm-8">
                    <p th:text="*{releaseTime}" style="margin-top: 10px"></p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">标记情况：</label>
                <div class="col-sm-8">
                    <p th:text="*{tags}" style="margin-top: 10px">无参数</p>
                </div>
            </div>
        </form>
    </div>

    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "djb/registry";
        $("#form-registry-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                // $.operate.save(prefix + "/edit", $('#form-registry-edit').serialize(0));
                // alert('xiaoma');
                $.modal.close();
            }
        }

        $("input[name='releaseTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>